<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.util.collection.model.HashParams</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.util.collection.model.HashParams");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461">tango.util.collection.model.HashParams</a></h1>
                
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>interface <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L33">HashParams</a></span>
<script>explorer.outline.addDecl('HashParams');</script>; [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Base interface for hash table based collections.
 Provides common ways of dealing with buckets and threshholds.
 &#40;It would be nice to share some of the code too, but this
 would require multiple inheritance here.&#41;
 
        </font><br><br>
<b>author:</b><br>Doug Lea
 @version 0.93<br><br> <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>int <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L40">defaultInitialBuckets</a></span>
<script>explorer.outline.addDecl('defaultInitialBuckets');</script>; [public, static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">The default initial number of buckets of a non-empty HT
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>float <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L47">defaultLoadFactor</a></span>
<script>explorer.outline.addDecl('defaultLoadFactor');</script>; [public, static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">The default load factor for a non-empty HT. When the proportion
 of elements per buckets exceeds this, the table is resized.
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>int <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L53">buckets</a></span>
<script>explorer.outline.addDecl('buckets');</script>(); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">return the current number of hash table buckets
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L62">buckets</a></span>
<script>explorer.outline.addDecl('buckets');</script>(int <span class="funcparam">newCap</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Set the desired number of buckets in the hash table.
 Any value greater than or equal to one is OK.
 if different than current buckets, causes a version change
 </font><br><br>
<b>Throws:</b><br>
IllegalArgumentException if newCap less than 1<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>float <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L71">thresholdLoadFactor</a></span>
<script>explorer.outline.addDecl('thresholdLoadFactor');</script>(); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the current load factor threshold
 The Hash table occasionally checka against the load factor
 resizes itself if it has gone past it.
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/HashParams.d?rev=3461#L79">thresholdLoadFactor</a></span>
<script>explorer.outline.addDecl('thresholdLoadFactor');</script>(float <span class="funcparam">desired</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Set the current desired load factor. Any value greater than 0 is OK.
 The current load is checked against it, possibly causing resize.
 </font><br><br>
<b>Throws:</b><br>
IllegalArgumentException if desired is 0 or less<br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                         :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Jun  8 17:12:54 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>